package org.crmsystem.model;

import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * The type Sys msg.
 */
@Component
public class SysMsg {
    /**
     * 消息id
     *
     */
    private Integer id;

    /**
     * 消息标题
     */
    private String title;

    /**
     * 消息内容
     */
    private String content;

    /**
     * 消息发布时间
     */
    private Date publishTime;

    /**
     * Instantiates a new Sys msg.
     *
     * @param id          the id
     * @param title       the title
     * @param content     the content
     * @param publishTime the publish time
     */
    public SysMsg(Integer id, String title, String content, Date publishTime) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.publishTime = publishTime;
    }

    /**
     * Instantiates a new Sys msg.
     */
    public SysMsg() {
        super();
    }

    /**
     * Gets id.
     *
     * @return the id
     */
    public Integer getId() {
        return id;
    }

    /**
     * Sets id.
     *
     * @param id the id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * Gets title.
     *
     * @return the title
     */
    public String getTitle() {
        return title;
    }

    /**
     * Sets title.
     *
     * @param title the title
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * Gets content.
     *
     * @return the content
     */
    public String getContent() {
        return content;
    }

    /**
     * Sets content.
     *
     * @param content the content
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    /**
     * Gets publish time.
     *
     * @return the publish time
     */
    public Date getPublishTime() {
        return publishTime;
    }

    /**
     * Sets publish time.
     *
     * @param publishTime the publish time
     */
    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }
}